<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='组盘单', subtext='管理系统中组盘单数据'" style="overflow: hidden;">

<head>
  <title>组盘单</title>
</head>
<body style="overflow: hidden;">

  <th:block layout:fragment="content">
    <div id="query-area" class="box-body m-b-sm border-bottom">
      <form class="form-horizontal search-form" role="form">
        <div class="row">

          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">入库单号</label>
              <div class="col-sm-9">
                <input type="text" id="docNumber" name="docNumber" placeholder="输入入库单号搜索" class="form-control" />
              </div>
            </div>
          </div>

          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">容器编码</label>
              <div class="col-sm-9">
                <input type="text" id="containNumber" name="containNumber" placeholder="输入容器编码搜索" class="form-control" />
              </div>
            </div>
          </div>

          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">物料编码</label>
              <div class="col-sm-9">
                <input type="text" id="materialCode" name="materialCode" placeholder="输入物料编码搜索" class="form-control" />
              </div>
            </div>
          </div>


        </div>

        <div class="row m-t">
          <div class="col-lg-12 seach-button">
            <div class="pull-right">
              <button type="submit" id="search" class="btn btn-primary">
                <i class="fa fa-search"></i> 搜索
              </button>
              <button type="reset" id="clear" class="btn btn-danger">
                <i class="fa fa-remove"></i> 清除
              </button>
            </div>
          </div>
        </div>
      </form>
    </div>

    <div class="row">
      <div class="col-lg-12">
        <div class="box">
          <div class="box-body">
            <h2>
              <!--
              <a  class="btn btn-primary btn-sm" th:href="@{|${baseUrl}/add|}" th:title="添加ASN">
                <i class="fa fa-fw fa-plus"></i> 添加
              </a>

              <a  class="btn btn-primary btn-sm dupAdd" href="javascript:;" th:title="勾选复制">
                <i class="fa fa-fw fa-plus"></i> 复制
              </a>
              <a  class="btn btn-primary btn-sm checkAll" th:href="@{|${baseUrl}/print|}" th:title="校验ASN码盘数量">
                <i class="fa fa-fw fa-plus"></i> 校验
              </a>
              <a  class="btn btn-primary btn-sm printAll" href="javascript:;" th:title="打印物料标签">
                <i class="fa fa-fw fa-plus"></i> 打印
              </a>
              <a  class="btn btn-primary btn-sm recvAll" href="javascript:;" th:title="整托收货">
                <i class="fa fa-fw fa-plus"></i> 按托收货
              </a>
               -->
              <!--
              <a  class="btn btn-primary btn-sm paAll" href="javascript:;" th:title="整托上架">
                <i class="fa fa-fw fa-plus"></i> 上架
              </a>
               -->
              <a  class="btn btn-danger btn-sm delAll" href="javascript:;" th:title="删除ASN">
                <i class="fa fa-fw fa-trash"></i> 删除
              </a>
            </h2>
            <div id="tableWrapper">
              <table id="table" class="table table-striped table-hover table-bordered table-fixed">
                <thead style="position:sticky;top:0;z-index:10;">
                <tr>
                  <th style="width:50px;">
                    <a href="javascript:;" class="selectAll" title="全选">全选</a>
                  </th>

                    <th style="width:90px;">入库单号</th>
                    <th style="width:70px;">行号</th>
                    <th style="width:80px;">容器编码</th>
                    <th style="width:80px;">物料编码</th>
                    <th style="width:160px;">物料描述</th>
                    <th style="width:70px;">码盘数量</th>
                    <th style="width:80px;">供应商</th>
                    <th style="width:110px;">WBS</th>
                    <th style="width:80px;">WMS批</th>
                    <th style="width:60px;">状态</th>
                    <th style="width:80px;">操作员</th>
                    <th style="width:120px;">创建时间</th>
                    <th style="width:60px;">操作</th>

                  </tr>
                </thead>
                <tbody>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
    <form id="delForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/del|}">
      <input id="ids" type="hidden" name="ids" />
    </form>

    <form id="dupForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/duplicate|}">
      <input id="ids" type="hidden" name="ids" />
    </form>
    <form id="checkForm" method="post" style="display: none" th:action="@{|${baseUrl}/palcheck|}">
      <input id="ids" type="hidden" name="ids" />
    </form>
      <form id="printForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/print|}">
          <input id="ids" type="hidden" name="ids" />
      </form>

    <form id="recvForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/recv|}">
      <input id="ids" type="hidden" name="ids" />
    </form>

    <form id="paForm" method="post" style="display: none" th:action="@{|${baseUrl}/putaway|}">
      <input id="ids" type="hidden" name="ids" />
    </form>

  </th:block>
  <th:block layout:fragment="scripts">
    <script th:inline="javascript">
      var VALUES_MAP_DICT_TYPE = /*[[${@CODES.valuesMapOfType('ASN_TYPE')}]]*/ {};
      var VALUES_MAP_DICT_STATUS = /*[[${@CODES.valuesMapOfType('ASN_STATUS')}]]*/ {};
    </script>
    <script th:src="@{|${theme}/js/app/inbound/palletize_list.js?v=${applicationVersion}|}" th:inline="javascript"></script>
  </th:block>
</body>

</html>
